package com.bigdata.security.shiro.token;/**
 * Created by Administrator on 2019/7/17 0017.
 */

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author Administrator
 * @description
 * @date 2019/7/17 0017
 **/
public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token) {
        this.token = token;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
